package com.king.demo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(value = {"com.king.demo.interfaces", "com.king.demo.impl"}
, nameGenerator = CustomAnnotationBeanNameGenerator.class)
public class ConfigApplication {
    @Bean
    public ServiceRegistrar proxyRegister() {
        return new ServiceRegistrar("com.king.demo.interfaces");
    }
}
